﻿using PracticeCentre.Modeles;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PracticeCentre.Mvc.Helper
{
    public class DataHelper
    {
        public static JsonResult GetResult(ExecuteState state, string message,string data)
        {
            JsonResult result = new JsonResult();
            result.Data = new
            {
                State = state,
                Message = message,
                Data= data
            };
            return result;
        }
    }
}